import React, { PropTypes } from 'react';
import { Router, Route } from 'react-router';
import Show from '../components/Show';
import Search from '../components/Search';
import Image from '../components/Image';
import Bind from '../components/Bind';
import Share from '../components/Share';
import Table from '../components/Table';
import Import from '../components/Import';
import ChangeLog from '../components/ChangeLog';
import SubMan from '../components/SubMan';
import NotFound from '../components/NotFound';

const Routes = ({ history }) =>
  <Router history={history}>
    <Route path="/show" component={Show} />
    <Route path="/search" component={Search} />
    <Route path="/subject" component={SubMan} />
    <Route path="/image" component={Image} />
    <Route path="/bind" component={Bind} />
    <Route path="/table" component={Table} />
    <Route path="/s" component={Share} />
    <Route path="/import" component={Import} />
    <Route path="/changelog" component={ChangeLog} />
    {/*<Route path="/home" component={Home} />*/}
    <Route path="*" component={NotFound}/>
  </Router>;

Routes.propTypes = {
  history: PropTypes.any,
};

export default Routes;
